<div class="body-position">
  <p class="messages_box">
   <%if flash[:create]-%>
    <%=flash[:create]-%>
   <%end-%>
  </p>
   <%unless @projects.empty?-%>
    <%for p in @projects -%>
     <table class="project-border-color">
       <tr>
         <td rowspan="3">
           <!--public_filename method is auto generated which reads the filename attribute-->
           <%=link_to(image_tag(p.project_snapshot.public_filename(:small)),p.project_snapshot.public_filename)-%>
         </td>
         <td>
           <a href="<%=h p.address -%>" class="link-decoration"><%=h p.address -%></a>
         </td>
         <td><%=link_to 'edit',edit_project_url(:id=>p),:class=>'link-decoration'-%></td>
       </tr>
       <tr>
         <td><%=h p.summary -%></td>
         <td><%=link_to 'delete',delete_project_url(:id=>p),:method=>:delete,:class=>'link-decoration',:confirm=>'are you sure?'-%></td>
       </tr>
       <tr>
         <td colspan="2"><%=h p.feature -%></td>
       </tr>
     </table>
    <%end-%>
   <%end-%>
  <p class="projectNum-new">
   <%if flash.now[:project_index]-%>
    <%=flash.now[:project_index]-%>
   <%end-%>
   <%=link_to 'New',new_project_url,:class=>'link-decoration'-%>
  </p>  
</div>

